#include "HashTable.h"
#include "Information.h"
#include "List.h"


HashTable::HashTable(): table(), size(0) {
}

 IInformation* HashTable::insert(char* lexem, TokenType type) {
	size_t hashValue = hash(lexem) % size + sizeof(int*);

	if (table[hashValue].isEmpty())
	{
//		table[hashValue].append(new SharedPointer<IInformation>(
//				new Information(lexem, type)));
	} else {


	}

	return NULL;

} 

size_t HashTable::hash(char* word) {
	unsigned int result = 0;

	for (int i = 1; i <= word[0]; i++) {
		result += word[i];
	}
	return result;
}
